package ru.ccfit.nsu.g7204.dronov.adPlatform;

/**
 * Created by IntelliJ IDEA.
 * User: Drongo
 * Date: 16.03.11
 * Time: 21:51
 * To change this template use File | Settings | File Templates.
 */
public class Feature {
    private int id;
    private String info;

    public Feature(int id, String info) {
        this.id = id;
        this.info = info;
    }

    public int getId() {
        return id;
    }

    public String getInfo() {
        return info;
    }

    @Override
    public String toString() {
        return info;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Feature feature = (Feature) o;

        if (id != feature.id) return false;
        if (info != null ? !info.equals(feature.info) : feature.info != null) return false;
        return true;
    }

    @Override
    public int hashCode() {
        int result = id;
        result = 31 * result + (info != null ? info.hashCode() : 0);
        return result;
    }
}
